home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 1
/
Gold Medal Software Volume 1 (Gold Medal) (1994).iso
/
autocad
/
101hatch.arj
/
WD_END.LSP
< prev
next >
Wrap
Text File
|
1993-10-13
|
950b
|
27 lines
; by Bryan Wallace of CAD Studio, Austin, Texas
;
; This routine automates the hatching of a
; parallelogram using the W3 (Wood End) hatch pattern.
;
(defun C:WD_END ()
(setvar "CMDECHO" 0)
(command "graphscr")
(setq PT1 (getpoint "\nFirst point... "))
(setq PT2 (getpoint "\nSecond point... "))
(setq PT3 (getpoint "\nThird point... \n"))
(setq D1 (/ (distance PT1 PT2) 6 ))
(setq ANG (* (angle PT1 PT2) (/ 180 PI )))
(setq SB (getvar "SNAPBASE"))
(setq SPB PT1)
(if ( = (length SPB) 3)
(setq SPB (list (car SPB) (cadr SPB) ))
)
(setvar "SNAPBASE" SPB)
(princ "Select boundary lines for the hatch area\n")
(setq ss (ssget))
(command "HATCH" "W3" D1 ANG "P" "")
(setvar "SNAPBASE" SB)
(setvar "CMDECHO" 1)
(princ)
)